package com.cssw.fyzb.wap.service;

import com.cssw.fyzb.base.web.domain.AjaxData;
import com.cssw.fyzb.base.web.domain.AjaxPage;
import com.cssw.fyzb.wap.model.vo.VideoHotDefVo;
import com.ydn.appserver.MinaAppClient;
import com.ydn.appserver.Request;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author YangYiQun
 */
@Service
public class HelloService extends BaseService {

    @Autowired
    private MinaAppClient busiClient;

    public AjaxData addLocalVideo(Long userId, String title, String media, String cover, String draft, String lat, String lng) {
        Request request = new Request("AddLocalVideo");
        request.setParameter("userId", userId);
        request.setParameter("title", title);
        request.setParameter("media", media);
        request.setParameter("cover", cover);
        request.setParameter("draft", draft == null ? "0" : draft);
        request.setParameter("lat", lat);
        request.setParameter("lng", lng);
        return convertData(busiClient.send(request));
    }
}
